<?php if ($type_list = $this->get_data('type_list')):?>
<div class="add_options">
    <a href="javascript:;">Add Node</a>
    <div class="type_list">
    <ul>
        <?php foreach ($type_list as $type):?>
            <li><a href="<?php echo $this->get_data('base_url') . "&type_id=" . $type['id'];?>">
                <?php echo $type['name'];?>
            </a></li>
        <?php endforeach;?>
    </ul>
    </div>
</div>
<!--<script>
function sh_node_list() {
    var node_list = z.s('node_list_wrap');
    if (node_list.style.display != 'none') {
        node_list.style.display = 'none';
    } else {
        node_list.style.display = 'block';
    }
}
</script>
--><?php endif;?>